package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyDateChannelAndLocation implements Serializable
{
	// 日期标识
	private String				date;
	// 渠道标识
	private String				channelId;
	// 位置标识
	private String				locationId;
	private static final long	serialVersionUID	= 1L;

	public KeyDateChannelAndLocation()
	{
	}

	public KeyDateChannelAndLocation(String date, String channelId, String locationId)
	{
		this.date = date;
		this.channelId = channelId;
		this.locationId = locationId;
	}

	public String getChannelId()
	{
		return channelId;
	}

	public void setChannelId(String channelId)
	{
		this.channelId = channelId;
	}

	public String getDate()
	{
		return date;
	}

	public void setDate(String date)
	{
		this.date = date;
	}

	public String getLocationId()
	{
		return locationId;
	}

	public void setLocationId(String locationId)
	{
		this.locationId = locationId;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((locationId == null) ? 0 : locationId.hashCode());
		result = prime * result + ((channelId == null) ? 0 : channelId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyDateChannelAndLocation o = (KeyDateChannelAndLocation) obj;
		if (date == null && o.date != null || null != date && !date.equals(o.date))
		{
			return false;
		}
		if (channelId == null && o.channelId != null || null != channelId && !channelId.equals(o.channelId))
		{
			return false;
		}
		if (locationId == null && o.locationId != null || null != locationId && !locationId.equals(o.locationId))
		{
			return false;
		}
		return true;
	}

	@Override
	public String toString()
	{
		return "KeyDateChannelAndLocation [date=" + date + ", channelId=" + channelId + ", locationId=" + locationId + "]";
	}
}
